﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Guline.Web.JXAccount
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            //Home/ChangePassword
            routes.MapRoute(
     "dangnhaps",
     "dang-nhap.jx",
    new { controller = "Home", action = "Login" }
);
            routes.MapRoute(
      "changquest",
      "doi-cau-hoi-bi-mat.jx",
     new { controller = "Home", action = "ChangeQuest" }
 );
            routes.MapRoute(
         "changeemail",
         "doi-email.jx",
        new { controller = "Home", action = "ChangeEmail" }
    );
            routes.MapRoute(
          "changpassword2",
          "doi-mat-khau-cap-2.jx",
         new { controller = "Home", action = "ChangePass2" }
     );
            routes.MapRoute(
          "changpassword",
          "doi-mat-khau.jx",
         new { controller = "Home", action = "ChangePassword" }
     );
            //Home/Panel
            routes.MapRoute(
            "quanlytaikhoan",
            "quan-ly-tai-khoan.jx",
           new { controller = "Home", action = "Panel" }
       );
            routes.MapRoute(
              "napthe",
              "nap-the.jx",
             new { controller = "Home", action = "NapThe" }
         );
            routes.MapRoute(
               "quenmatkhau",
               "quen-mat-khau.jx",
              new { controller = "Home", action = "LostPassword" }
          );
            routes.MapRoute(
               "register",
               "dang-ky.jx",
              new { controller = "Home", action = "Register" }
          );
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}